const path = require('path');
const resolve = dir => path.join(__dirname, dir);

module.exports = {
    devServer: {
        // 端口号为8888
        port: 8888,
        // 自动打开浏览器
        open: true
    },
    lintOnSave: false,
    chainWebpack: config => {
        config.resolve.alias
            .set('@/api/private/v1', resolve('src'))
    }
}